﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace FinanSoft.Entities
{
    [DataContract]
    public class SaleReportHistoryDetail
    {
        #region Attributes
        private DateTime _saleDate;
        private double _quantity;
        private double _unitCost;
        #endregion

        #region Constructor
        public SaleReportHistoryDetail(DateTime saleDate, double quantity, double unitCost)
        {
            _saleDate = saleDate;
            _quantity = quantity;
            _unitCost = unitCost;
        }
        #endregion

        #region Properties
        [DataMember]
        public DateTime SaleDate
        {
            get
            {
                return _saleDate;
            }
            set
            {
                _saleDate = value;
            }
        }

        [DataMember]
        public double Quantity
        {
            get
            {
                return _quantity;
            }
            set
            {
                _quantity = value;
            }
        }

        [DataMember]
        public double UnitCost
        {
            get
            {
                return _unitCost;
            }
            set
            {
                _unitCost = value;
            }
        }
        #endregion
    }
}
